#include "connectmsg.h"

CConnectMsg::CConnectMsg()
		: CNetMsg(CNetMsg::MSG_TYPE_CONNECT)
{
}

void CConnectMsg::setUsername(const QString &strUsername)
{
    m_strUsername = strUsername;
}

QString CConnectMsg::getUsername() const
{
	return m_strUsername;
}

void CConnectMsg::setPassword(const QString &strPasswordHash)
{
    m_strPasswordHash = strPasswordHash;
}


QString CConnectMsg::getPassword() const
{
	return m_strPasswordHash;
}

void CConnectMsg::serialiseToStream(QDataStream &s) const
{
    s << m_strUsername << m_strPasswordHash;
}

void CConnectMsg::serialiseFromStream(QDataStream &s)
{
    s >> m_strUsername >> m_strPasswordHash;
}
